package com.cdtye.shuoh.mapper.product;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cdtye.shuoh.domain.product.entity.ProductServices;
import com.cdtye.shuoh.domain.product.vo.ProductServicesVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 产品模型服务表 Mapper 接口
 * @author 
 * @date 2022-12-21
 */
@Repository
public interface ProductServicesMapper extends BaseMapper<ProductServices> {
    List<ProductServices> findAllByProductIdentificationId(@Param("productIdentification") String productIdentification);

    ProductServices findOneByProductIdentificationAndServiceId(@Param("productIdentification") String productIdentification,@Param("serviceId") String serviceId);

    IPage<ProductServices> pageList(Page page, @Param("vo")ProductServicesVo vo);

    List<ProductServices> list(@Param("vo") ProductServicesVo vo);

    int deleteByProductIdentification(@Param("productIdentification")String productIdentification);
}
